Migrating from Microsoft FrontPage to Macromedia Dreamweaver MX 2004
Table of Contents
- Introduction
- Introducing the Dreamweaver Workspace
- Streamlining Your Workspace
- Setting Up a Web and Managing Files
- Working with Text
- Working with Styles and Style Sheets
- Working with Images
- Creating Links
- Creating Tables
- Using Layout Mode to Position Text and Images
- Using Predesigned Pages to Get a Head Start
- Making Quick Edits to Code
- Working in Code View
- Editing Code in Code View
- Customizing Your Coding Environment
- Taking the Next Steps
Making Quick Edits to Code
Dreamweaver lets you visually create and edit web pages without worrying about the underlying source code, but there are times when you might need to edit the code for greater control or to troubleshoot a page. Dreamweaver lets you edit some code while working in Design view.
You can use the tag selector to quickly select code you want to edit. The tag selector is in the status bar at the bottom of the Document window and shows a series of tags, as follows:
Figure 36. The tag selector
Note: FrontPage 2003 introduced a Quick Tag Selector that serves the same purpose as the tag selector in Dreamweaver,
To quickly select a tag in Design view:
Click in the document in Design view.
The tags that apply at the insertion point appear in the tag selector.
Click the tag you want in the tag selector to select it, or right-click the tag to display a number of editing options.
Figure 37. The tag selector contextual menu
You can use the Quick Tag Editor to quickly inspect and edit HTML tags without leaving Design view.
Note: FrontPage 2003 introduced a Quick Tag Editor that’s called the same thing and serves the same purpose as the one in Dreamweaver.
To quickly edit a tag using the Quick Tag Editor:
Do one of the following:
- Select a tag-based object in Design view and press Control-T.
- Right-click a tag in the tag selector and select Edit Tag from the pop-up menu.
The Quick Tag Editor opens in Edit Tag mode.
Figure 38.
- Enter new attributes, edit existing attributes, or edit the tag’s name. You can press Tab to move forward from one attribute to the next; press Shift-Tab to move back.
- When you’re done, press Enter.
- To exit without making any further changes, press Escape.
You can also edit tags in a property sheet similar to the ones found in integrated development environments (IDEs) such as Microsoft Visual Studio. In Dreamweaver, this property sheet is part of the Tag inspector.
To quickly edit a tag in the Tag inspector:
- Open the Tag inspector (Window > Tag Inspector).
Select a page element in Design view by either clicking it directly or clicking the corresponding tag in the tag selector.
If the element has attributes, Dreamweaver displays them and their current values in the Tag inspector’s property sheet.
Figure 39. The tag inspector
- Make the changes to the attributes in the property sheet. Click an attribute to type a value or, if the attribute takes predefined values, select one from a list. You can also change any CSS style applied to the element by clicking the Relevant CSS tab in the Tag inspector and selecting the CSS rule you want to modify.
- Click elsewhere in the panel or press Enter to update your page.